package cn.com.project.pattern.h.adapter;

import java.util.Map;

/**
 * @Desc 适配器，将外部用户适配为内部用户
 * @Author wangjun
 * @Date 2018-01-23
 */
public class OuterInnerUser extends OuterUser implements IInnerUser {

	private Map<String, String> userBaseInfo = super.getUserBaseInfo(); 
	
	private Map<String, String> userContactInfo = super.getUserContactInfo();
	
	@Override
	public String getUserName() {
		String userName = userBaseInfo.get("userName");
		System.out.println(userName);
		return null;
	}

	@Override
	public String getUserSex() {
		String userSex = userBaseInfo.get("userSex");
		System.out.println(userSex);
		return null;
	}

	@Override
	public String getUserAge() {
		String userAge = userBaseInfo.get("userAge");
		System.out.println(userAge);
		return null;
	}

	@Override
	public String getUserMobile() {
		String userMobile = userContactInfo.get("userMobile");
		System.out.println(userMobile);
		return null;
	}

	@Override
	public String getHomeAdress() {
		String homeAdress = userContactInfo.get("homeAdress");
		return null;
	}

}
